package springboot_shiro.com.ljs.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springboot_shiro.com.ljs.entity.Student_boot;
import springboot_shiro.com.ljs.mapper.StudentMapper;

import javax.annotation.Resource;
@Service
public class StudentServiceImpl  implements StudentService{
 @Resource
    StudentMapper studentMapper;
    @Override
    public Student_boot selByname(String name) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("name",name);
        Student_boot Student=studentMapper.selectOne(queryWrapper);
        return Student;
    }
}
